console.log("__filename:", __filename);
console.log("__dirname:", __dirname);

const path = require("path");
const viewPathDefault = path.join(__dirname, "views", "index.html");
console.log("Default join (platform):", viewPathDefault);

const viewPathWin = path.win32.join(__dirname, "views", "index.html");
const viewPathPosix = path.posix.join(__dirname.replace(/\\/g, "/"), "views", "index.html");
console.log("Windows join (win32):", viewPathWin);
console.log("POSIX join (linux/mac):", viewPathPosix);
console.log("path.sep:", path.sep, "| path.delimiter:", path.delimiter);